package com.haoze.nurseapp.service.feign;


import com.haoze.common.response.Result;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@Headers("Content-Type:application/json")
@FeignClient(name = "api-message", configuration = FeignSupportConfig.class)
public interface MessageService {

    @RequestMapping(value = "/socket/sendmsg", method = RequestMethod.GET)
    Result sendMsg(@RequestParam("account") String account, @RequestParam("msg") String msg);

}
